package com.luboyan.CBillbill.service.user;

import com.luboyan.CBillbill.dao.user.RefreshToken;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public interface UserRefreshService {

    /**
     * 登录时添加刷新token
     */
    void addRefreshTokenById(Long id, String refreshToken, Date date);

    /**
     * 根据id删除refreshToken
     */
    void deleteRefreshToken(String refreshToken);

    /**
     * 获取refreshToken得详情
     */
    RefreshToken getRefreshToken(String refreshToken);
}
